package org.example.funtion;

import java.util.function.Function;

public class Test02 {

    //(T) -> R

    public static void main(String[] args) {
        Function<String, Long> function = (str) -> {
            if(str == null){
                return 0L;
            }

            return Long.valueOf(str);
        };

        Long val = function.apply("100");
        System.out.println(val);
    }



}
